<%@tag pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@attribute name="id"%>
<%@attribute name="on" type="java.lang.Object"%>
<%@attribute name="off" type="java.lang.Object"%>
<%@attribute name="label" type="java.lang.Object"%>
<%@attribute name="value" type="java.lang.Boolean"%>
<%@attribute name="rendered" type="java.lang.Boolean"%>
<c:if test="${empty rendered or rendered eq true}">
<div class="row" style="padding: 5px;">
  <span class="onoffswitch-title" style="width: 165px; margin-left: -5px;"> <c:out value="${label}" default=" " /></span>
   <span class="onoffswitch"> 
	   <input type="checkbox" name="${id}"  class="onoffswitch-checkbox" id="${id}" 
	   <c:if test="${not empty value and value eq true}">checked="checked"</c:if>
	   value="<c:out value="${value}" default="true" />" />
	    <label class="onoffswitch-label" for="${id}">
	      	<span class="onoffswitch-inner" data-swchon-text="${on}" data-swchoff-text="${off}"></span><span class="onoffswitch-switch"></span>
		</label>
	</span>
</div>
</c:if>